|
|
|
|
|
|
|
Figure 28.2
Using the ODBC Data Source Administrator,
you can configure data source names
(DSNs) that point to specific databases. |
|
|
|
|
|
|
|
|
Figure 28.3
Using ODBC to connect to a Access databases
is somewhat different than using Jet, as discussed
in Chapter 26, "Using Data Access Objects (DAO)." |
|
|
|
|
|
|
|
|
Click OK to close the ODBC Data Source Administrator. Now that the ODBC data source has been configured, you can work with data in the BIBLIO data source by using ADO. |
|
|
|
|
|
|
|
|
|
Although ODBC provides an easy way to set up a data source, you do not have to use ODBC to use ADO. There is also an ADO data provider for Jet databases that does not use ODBC.  |
|
|
|
|
|
|
|
|
|
|
Using the ADO Data Control |
|
|
|
|
|
|
|
|
Visual Basic 6.0 includes a new Data control: the ADO Data control. This control serves the same purpose as the standard Data control that has been around for years, but it works with ADO. |
|
|
|
|
|
|
|
|
As mentioned earlier, ADO can be used with controls, code, or both. ADO is a lot more flexible than DAO in this regard. Although a Data control can be used by itself, the most common use |
|
|
|
|
|